package com.matrix.kernel.util;

/**
 * @author liuxiang
 * @email lewis_liux@hotmail.com
 * @date 2017/9/13
 * @time 10:33
 */
public class RequestUtil {
    public static Long[] getLongArrayFromRequestParam(String longStr){
        longStr = longStr.replace("[","");
        longStr = longStr.replace("]","");
        String [] strs = longStr.split(",");
        Long[] arr = new Long[strs.length];
        int i = 0;
        for(String str:strs){
            arr[i] = Long.parseLong(str);
            i++;
        }
        return arr;
    }
}
